package cfca.paperless.client.servlet._3_assist._3_20_GetSceneCertAmount;

import cfca.paperless.client.servlet.PaperlessClient;
import cfca.paperless.client.servlet.PaperlessConfig;

/**
 * @description 查询预植场景证书数量   
 * 注：查询出的数据是有效的证书数量
 * @author wlj
 * @date : 2018-5-21 下午5:10:07
 * @reviewed by 
 */
public class GetSceneCertAmountTest01 {

    public static void main(String[] args) throws Exception {

        long timeStart = System.currentTimeMillis();// 开始时间

        System.out.println("GetSceneCertAmountTest01 START");

        PaperlessClient clientBean = new PaperlessClient(PaperlessConfig.assistUrl, 10000, 60000);// 无纸化辅助接口的访问URL
        String keyAlg = "RSA";
        String keyLength = "2048";
        String organizationCode = "localCreateOrgCode001";
         // 操作员编码或者机构号
        String operatorCode = PaperlessConfig.operatorCode;
        // 渠道编码，可以为空
        String channelCode = PaperlessConfig.channelCode;
        // 取得预植场景证书的数量
        String result = clientBean.getSceneCertAmount(keyAlg,keyLength,organizationCode,operatorCode,channelCode);
        System.out.println("getSceneCertAmount result="+result);
        System.out.println("GetSceneCertAmountTest01 END");

        long timeEnd = System.currentTimeMillis();// 结束时间
        System.out.println("##########" + "time used:" + (timeEnd - timeStart) + "##########");
    }

    
}
